<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/jsp/jstl/core"%>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>在线测试-<c:out value="${examin.title }" /></title>

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<link href="/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
caption {
	font-size: 17px;
	font-weight: 600;
	text-align: center;
}

ul.ul_question {
	display: block;
	width: 100%;
}

ul.ul_question li {
	display: block;
	width: 100%;
	margin-left: 20px;
	list-style-type: decimal;
}

ul.ul_option {
	display: block;
	width: 100%;
	list-style-type: decimal;
}

ul.ul_option li {
	display: block;
	width: 200px;
	height: 50px;
}

span.right {
	color: #0F0;
}

span.wrong {
	color: #F00;
}

input.input_button {
	display: inline-block;
	width: 70px;
	height: 30px;
	border: 0px;
	line-height: 30px;
	font-size: 15px;
	color: #FFF;
	text-align: center;
	vertical-align: bottom;
	background: #960E36;
}
</style>
</head>

<body>
  <div class="main">
    <div class="content info_main">
      <form action="/examin/achieve.dhtml" method="post">
        <input type="hidden" name="id" value="<c:out value="${examin.id }" />" />
        <table>
          <caption>
            <c:out value="${examin.title }" />
          </caption>
          <c:forEach items="${ list}" var="s" varStatus="status">
            <tr>
              <td style="padding-bottom: 10px; font-size: 15px;"><c:out value="${status.index + 1}" />. [<c:out
                  value="${s.type == 0 ? '单选':'多选'}" />]&nbsp; <c:out value="${s.title}" /><br /> <s:if
                  test="img!=null">
                </s:if></td>
            </tr>
            <tr>
              <td>
                <table>
                  <tr>
                    <c:forEach items="${ s.options}" var="so">
                      <c:if test="${so.stat == 0 }">
                        <td style="padding-bottom: 20px;"><input
                          type="<c:out value="${s.type == 0 ? 'radio':'checkbox'}" />" name="${s.id }"
                          value="${so.id}" /> <c:out value="${so.title}" /> <c:if test="${so.img != null }" >
                            <img style="float: left;" src="<c:out value="${so.img}" />" />
                          </c:if></td>
                      </c:if>
                    </c:forEach>
                  </tr>
                </table>
              </td>
            </tr>
          </c:forEach>
          <tr>
            <td align="center"><input class="input_button" type="submit" value="完成测试" /></td>
          </tr>
        </table>
      </form>
    </div>
    <div style="font: 0px/0px sans-serif; clear: both; display: block"></div>
  </div>
</body>
</html>
